@import '../../../styles/mixins';

.SessionRecordingPlayer {
    position: relative;
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);

    &--no-border {
        border: none;
        border-radius: 0;
    }

    .SessionRecordingPlayer__body {
        position: relative;
        z-index: 0;
        min-width: 1px;
        height: 100%;
        overflow: hidden;
        background-color: var(--bg-light);
    }

    .SessionRecordingPlayer__main {
        flex: 1;
    }

    &--fullscreen {
        position: fixed;
        inset: 0;
        z-index: var(--z-modal);
        overflow-y: auto;
        background-color: var(--bg-light);
        border: none;
        border-radius: 0;

        .SessionRecordingPlayer__body {
            height: 100%;
            margin: 0;
            border-radius: 0;
        }
    }

    .SessionRecordingPlayer__main,
    .SessionRecordingPlayer__inspector {
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .LemonModal & {
        .SessionRecordingPlayer__body {
            height: calc(90vh - 15rem);
        }
    }

    .SessionRecordingPlayer__inspector {
        position: relative;
        flex-shrink: 0;
        min-width: 20rem;
        max-width: 50%;
    }

    &--wide {
        .SessionRecordingPlayer__inspector {
            min-width: 26rem;
        }
    }

    &--stacked-vertically {
        flex-direction: column;

        .SessionRecordingPlayer__inspector {
            min-width: 100%;
            max-width: 100%;
        }
    }
}

.PlayerControlSeekIcon {
    position: relative;
    display: flex;

    .PlayerControlSeekIcon__seconds {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 6px;
        font-weight: bold;
        text-align: center;
    }

    .PlayerControlSeekIcon__icon {
        font-size: 1.3rem;

        &--forward {
            transform: rotateY(180deg);
        }
    }
}
